const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
        '/api': {
            target: 'http://127.0.0.1:7001',
            changeOrigin: true,
            pathRewrite: {
                '^/api': '/api'
            }
        },
        '/public': {
            target: 'http://127.0.0.1:7001',
            changeOrigin: true,
            pathRewrite: {
                '^/public': '/public'
            }
        }
    }
  }
})
